﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using ElectronicCommerce.Framework.Payment.Contract.DataContract.Common;

namespace ElectronicCommerce.Framework.Payment.Contract.DataContract
{
    /// <summary>
    /// 收费回调请求
    /// </summary>
    [Serializable]
    [DataContract]
    public class ChargeCallbackRequest : PaymentRequest
    {
        public ChargeCallbackRequest()
            : this("", "")
        {
        }

        public ChargeCallbackRequest(string paymentName)
            : this(paymentName, "")
        {
        }

        public ChargeCallbackRequest(string paymentName, string gatewayAddress)
            : base(paymentName, gatewayAddress)
        {
            this.ResponseMode = ResponseMode.UrlRedirect;
        }

        /// <summary>
        /// 请滶响应方式
        /// </summary>
        [DataMember]
        public ResponseMode ResponseMode { get; set; }
    }
}
